package com.dstz.demo.core.manager.impl;

import com.dstz.base.api.query.QueryFilter;
import com.dstz.base.manager.impl.BaseManager;
import com.dstz.demo.core.dao.PcompanyDao;
import com.dstz.demo.core.manager.PcompanyManager;
import com.dstz.demo.core.model.Pcompany;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.UUID;

/**
 * 公司基本信息 Manager处理实现类
 * @author aschs
 * @email aschs@qq.com
 * @time 2019-11-30 11:23:39
 */
@Service("pcompanyManager")
public class PcompanyManagerImpl extends BaseManager<String, Pcompany> implements PcompanyManager {
	@Resource
	PcompanyDao pcompanyDao;

	@Override
	public void insertPcompany(Pcompany pcompany) {
			pcompany.setPCompanyId(UUID.randomUUID().toString());
			pcompanyDao.create(pcompany);
	}

	@Override
	public void updatePcompany(Pcompany pcompany) {

	}

	@Override
	public void deletePcompany(Pcompany pcompany) {

	}

	@Override
	public List<Pcompany> listPagePcompany(QueryFilter queryFilter) {
		return pcompanyDao.query(queryFilter);
	}
}
